// components/card/card.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    card: Object
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    // 点击跳转详情页
    goToPoetryDetail(e){
      const poetry_id = e.currentTarget.dataset.poetry_id;
      if(poetry_id){
        wx.navigateTo({
          url: `../../subpackages/poetryDetail/poetryDetail?poetry_id=${poetry_id}`,
        })
      }
    }
  }
})
